package com.ecmp.demo.dao;

import com.ecmp.core.dao.BaseEntityDao;
import com.ecmp.demo.entity.Community;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by Administrator on 2017/8/11.
 */
@Repository
public interface CommunityDao extends BaseEntityDao {

    /**
     * 查询所有的社团，包含已冻结的
     * @return 社团实体集合
     */
    @Override
    List<Community> findAll();


    /**
     * 获取所有未冻结的社团
     *
     * @return 返回未冻结的社团实体集合
     */
    @Override
//    @QueryHints(@QueryHint(name = "org.hibernate.cacheable", value ="true"))
    List<Community> findAllUnfrozen();

}
